# -*- coding: utf-8 -*-
from abc import ABC

from . import config
import logging
from celery import Celery
import sys
import os

BASE_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(BASE_DIR, os.path.pardir))
logger = logging.getLogger(__name__)


def make_app():
    app = Celery()
    app.config_from_object(config)

    # from utils.log import setup_my_logging
    # setup_my_logging()
    return app


app = make_app()

__all__ = ['app']